<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js字符串和数组对象</title>
</head>
<body>
	
</body>

<script>
	
	arr=['linux','php','js'];
	str=arr.pop();
	alert(str); //结果 js
	
</script>
</html>